package ystp.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import ystp.model.Yuecaikangjunyaowu;
import ystp.model.YuecaikangjunyaowuExample;

public interface YuecaikangjunyaowuMapper {
    int countByExample(YuecaikangjunyaowuExample example);

    int deleteByExample(YuecaikangjunyaowuExample example);

    int deleteByPrimaryKey(String id);

    int insert(Yuecaikangjunyaowu record);

    int insertSelective(Yuecaikangjunyaowu record);

    List<Yuecaikangjunyaowu> selectByExample(YuecaikangjunyaowuExample example);

    Yuecaikangjunyaowu selectByPrimaryKey(String id);

    int updateByExampleSelective(@Param("record") Yuecaikangjunyaowu record, @Param("example") YuecaikangjunyaowuExample example);

    int updateByExample(@Param("record") Yuecaikangjunyaowu record, @Param("example") YuecaikangjunyaowuExample example);

    int updateByPrimaryKeySelective(Yuecaikangjunyaowu record);

    int updateByPrimaryKey(Yuecaikangjunyaowu record);

    List<Map<String,Object>> findYuecaiPagingByXiangmuId(@Param("xiangmuid") String ppxiangmuId, @Param("startindex") int ppStartIndex, @Param("pagesize") int ppPageSize);

    Object countYuecaiByXiangmuId(@Param("xiangmuid") String ppxiangmuId);

    List<Map<String,Object>> findYuecaiBiaojueByXiangmuId(@Param("xiangmuid") String ppxiangmuId,@Param("userid") String ppuserId, @Param("startindex") int ppStartIndex, @Param("pagesize") int ppPageSize);

    Object countYuecaiBiaojueByXiangmuId(@Param("xiangmuid") String ppxiangmuId,@Param("userid") String ppuserId);
}